﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="ApproalAdd.aspx.cs" Inherits="Default2" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .td1
        {
            text-align: right;
        }
        .td2
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        批文信息添加
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="900px" style=" text-align:center;">
            <PanelCollection>
                <dx:PanelContent>
                    <table style="width: 100%;">
                        <tr>
                            <td class="td1">
                                批文文号：
                            </td>
                            <td class=”td2">
                                <dx:ASPxTextBox ID="txtID" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxTextBox>
                            </td>
                            <td class="td1">
                                批文标题：
                            </td>
                            <td  class=”td2">
                                <dx:ASPxTextBox ID="txtTitle" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="td1">
                                批文摘要：
                            </td>
                            <td colspan="3"  class=”td2">
                                <dx:ASPxMemo ID="txtRemark" runat="server" Height="100px" Width="750px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxMemo>
                            </td>
                        </tr>
                        <tr>
                            <td class="td1">
                                批文日期：
                            </td>
                            <td  class=”td2">
                                <dx:ASPxTextBox ID="txtDate" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxTextBox>
                            </td>
                            <td class="td1">
                                所属城区：
                            </td>
                            <td  class=”td2">
                                <dx:ASPxComboBox ID="cmbComminity" runat="server" DataSourceID="SDSCom" ValueType="System.String"
                                    ValueField="Community_ID" TextField="Community_Name" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Spacing="0"  Width="300px"
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                </dx:ASPxComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td align="right">
                                <dx:ASPxButton ID="btnOK" runat="server" Text="添加" OnClick="btnOK_Click" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxButton>
                            </td>
                            <td align="left">
                                <dx:ASPxButton ID="btnCancel" runat="server" Text="取消" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    OnClick="btnCancel_Click">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxPanel>
        <asp:SqlDataSource ID="SDSCom" runat="server" ConnectionString="<%$ ConnectionStrings:ManagerConnectionString %>"
            SelectCommand="SELECT [Community_ID], [Community_Name], [Parent_ID] FROM [Community] WHERE ([Parent_ID] = @Parent_ID)">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="Parent_ID" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
</asp:Content>
